const request = require('../util/request')
// 注册   这里的data不写params全部写data作为参数的传递
export function denglu(data){
  return request({
    url:'/api/login/getLogin',
    method:'post',
    data
  })
}

export function product(data){
  return request({
    url:'/cart/updateNum',
    method:'post',
    data,
    type:0
  })
}


export function wuliushuju(){
  return request({
    url:'/api/indexDeliverGoods/logisticsInfo',
    method:'post',
    header:{'authorization': wx.getStorageSync('token')}
  })
}
export function listanzhuang(data){
  return request({
    url:'/api/indexInstallationMaster/orderList',
    method:'post',
    data,
   header:{'Authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function listfahuo(data){
  return request({
    url:'/api/indexDeliverGoods/orderList',
    method:'post',
    data,
   header:{'Authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function fahuo(data){
  return request({
    url:'/api/indexDeliverGoods/orderDeliverGoods',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}



export function kuaidi(data){
  return request({
    url:'/api/indexDeliverGoods/logisticsInfo',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}

export function installationFinish(data){
  return request({
    url:'/api/indexInstallationMaster/finish',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function viplist(data){
  return request({
    url:'/api/indexDealer/memberList',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function dingdanlist(data){
  return request({
    url:'/api/indexDealer/orderList',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}

export function money(data){
  return request({
    url:'/api/indexDealer/balanceDetails',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function tixian(data){
  return request({
    url:'/api/indexDealer/balanceWithdrawal',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}

export function shouhou(data){
  return request({
    url:'/api/indexInstallationMaster/workOrderList',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function weixiuwancheng(data){
  return request({
    url:'/api/indexInstallationMaster/workOrderFinish',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function mylist(data){
  return request({
    url:'/api/indexInstallationMaster/myOrder',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function connect(data){
  return request({
    url:'/api/indexInstallationMaster/installationFinish',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function quxiaojiedan(data){
  return request({
    url:'/api/indexInstallationMaster/quxiaojiedan',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
export function tixianopenId(data){
  return request({
    url:'/api/indexDealer/updateTixianOpenId',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}


export function lvxinorder(data){
  return request({
    url:'/api/indexDeliverGoods/lvxinorderList   ',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}
//滤芯发货  
export function orderDeliverLvxins(data){
  return request({
    url:'/api/indexDeliverGoods/orderDeliverLvxins',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}

//滤芯发货  
export function orderListCount(data){
  return request({
    url:'/api/indexDeliverGoods/orderListCount',
    method:'post',
    data,
    header:{'authorization': wx.getStorageSync('token'),'content-type':'application/x-www-form-urlencoded'}
  })
}